

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Table Commands [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, RTF Style Template Editor,RTF Style Template Editor Table Commands">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Table Commands</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="hyperlinks_and_bookmarks.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="sectionsandcolumns.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">The </span><span class="f_MenuKeyField">Table</span><span class="f_BodyText"> menu enables you to create a new table, or to edit an existing table's attributes.</span></p>
<div style="text-align: left; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 5px 0px 5px 13px;"><table cellspacing="0" cellpadding="0" border="0" style="border: none; border-spacing:0px; border-collapse: collapse;">
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" bgcolor="#e3e6ed" style="width:147px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">To</span></p>
</td>
<td valign="top" width="714" bgcolor="#e3e6ed" style="width:714px; background-color:#e3e6ed; border: solid 1px #000000;"><p class="p_Tableheader"><span class="f_Tableheader">Do This...</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Insert a table in the document</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Position the cursor at the appropriate point, and select the </span><span class="f_MenuKeyField">Table | Insert Table</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">New Table Parameters</span><span class="f_Tabletext"> dialog displays, in which you specify the number of table rows and columns.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">The editor initially creates cells of equal width. You can, however, change the cell width by dragging the cell borders using the mouse. When </span><span class="f_MenuKeyField">Page Mode</span><span class="f_Tabletext"> is deselected, the </span><span class="f_Tabletext">table structure is not visible.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Add a header row</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the rows to act on, and then select the </span><span class="f_MenuKeyField">Table | Header Row</span><span class="f_Tabletext"> menu option. Apply any heading settings and formatting to the rows in the highlighted block.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Insert a new row above the current row</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the </span><span class="f_MenuKeyField">Table | Insert Row</span><span class="f_Tabletext"> menu option.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Insert a new column to the left of the current column</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the </span><span class="f_MenuKeyField">Table | Insert Column</span><span class="f_Tabletext"> menu option.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Merge cells</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to merge and select the </span><span class="f_MenuKeyField">Table | Merge Cells</span><span class="f_Tabletext"> menu option. The width of the resulting cell is equal to the sum of the merged cells. You can merge cells across a row, down a column, and in a block spanning both rows and columns.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Split a cell</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cell to split and select the </span><span class="f_MenuKeyField">Table | Split Cell</span><span class="f_Tabletext"> menu option. The selected cell is split into two cells of equal width. Any text in the original cell is assigned to the first cell. The second cell is created empty.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Delete cells</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to delete and select the </span><span class="f_MenuKeyField">Table | Delete Cells</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Delete Table Cells</span><span class="f_Tabletext"> dialog displays, on which you specify whether to delete:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">Cells</span><span class="f_Tabletext"> - deletes the highlighted cells</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1" style="font-weight: bold;">Columns</span><span class="f_Tabletext"> - deletes all the cells in the highlighted column or columns</span></li>
<li><span class="f_Bulletlist1" style="font-weight: bold;">Rows</span><span class="f_Bulletlist1"> - </span><span class="f_Tabletext">deletes all the cells in the highlighted row or rows.</span></li>
</ul>
<p class="p_Tabletext"><span class="f_Tabletext">If you delete all cells in a table, the table itself is automatically deleted.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Position the table on the page</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Click on any part of the table and select the </span><span class="f_MenuKeyField">Table | Row Position</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Table Row Alignment</span><span class="f_Tabletext"> dialog displays, on which you select to left-align, center or right-align the table on the page.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">This option has little effect if the table is wide enough to span the page or text column.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Set the height of a row, or all rows</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the row to adjust and select the </span><span class="f_MenuKeyField">Table | Row Height</span><span class="f_Tabletext"> menu option</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">The </span><span class="f_UIControl">Row Height Parameters</span><span class="f_Tabletext"> dialog displays, enabling you to set an automatic row height, a minimum row height, or an exact row height. You can apply the setting to the selected rows only, or to all rows in the table.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Keep row text together if it continues over a page</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the rows to protect (preferably all rows in the table) and select the </span><span class="f_MenuKeyField">Table | Keep Row Together</span><span class="f_Tabletext"> menu option. If the row continues over the end of the page, the whole row is moved to the top of the next page.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Set text flow in rows</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the rows and select the </span><span class="f_MenuKeyField">Table | Row Text Flow</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Table Text Flow</span><span class="f_Tabletext"> dialog displays, on which you select the direction of flow of the text and select to apply the setting to the selected rows or all rows in the table.</span></p>
<p class="p_Tabletext"><span class="f_Tabletext">This option also moves the whole row over to the appropriate side of the page or column.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Set the width of selected cells</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Width</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Set Cell Width</span><span class="f_Tabletext"> dialog displays, on which you set the cell width and text margin and apply them to:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Define the cell border width</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Border Width</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Set Cell Border</span><span class="f_Tabletext"> dialog displays, on which you set the width of the line at any or all of the top, bottom, left and right of a cell, or whether to draw a uniform border around the cells. You can also set the text margin, and apply all the settings to:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Define the cell border color</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Border</span><span class="f_Tabletext"> </span><span class="f_MenuKeyField">Color</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Set Cell Border</span><span class="f_Tabletext"> </span><span class="f_UIControl">Color</span><span class="f_Tabletext"> dialog displays, on which you set the color of the line at any or all of the top, bottom, left and right of a cell, or whether to have a uniformly colored border around the cells. You then apply the settings to:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Define the cell shading</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Shading</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Cell Shading Parameters</span><span class="f_Tabletext"> dialog displays, on which you set the shading percentage. The value </span><span class="f_Tabletext" style="font-weight: bold;">0</span><span class="f_Tabletext"> indicates the palest background, whereas the value </span><span class="f_Tabletext" style="font-weight: bold;">100</span><span class="f_Tabletext"> indicates a black background. You then apply the setting to:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Define the cell background color</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Color</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Cell Color Parameters</span><span class="f_Tabletext"> dialog displays, on which you set the cell background color. You then apply the color to:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Vertically align cells</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Vertical Align</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Cell Vertical Alignment</span><span class="f_Tabletext"> dialog displays, on which you select to align the selected cells by top, center, bottom or baseline. You then select to align:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Rotate cell text</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Select the cells to act on and select the </span><span class="f_MenuKeyField">Table | Cell Rotate Text</span><span class="f_Tabletext"> menu option. The </span><span class="f_UIControl">Cell Text Rotation</span><span class="f_Tabletext"> dialog displays. On which you select to display text horizontally across the cell, vertically up the cell, or vertically down the cell. You then select to apply the rotation to:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in a highlighted block</span></li>
<li><span class="f_Bulletlist1">The selected cells only</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">All cells in the selected column or columns, or</span></li>
<li><span class="f_Bulletlist1">All cells in the selected row or rows.</span></li>
</ul>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Select column</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Click on a cell and select the </span><span class="f_MenuKeyField">Table | Select Current Column</span><span class="f_Tabletext"> menu option. The whole column is highlighted and selected for further formatting.</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td valign="top" width="147" style="width:147px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext" style="font-weight: bold;">Show / hide table outline</span></p>
</td>
<td valign="top" width="714" style="width:714px; border: solid 1px #000000;"><p class="p_Tabletext"><span class="f_Tabletext">Click on a table cell and select the </span><span class="f_MenuKeyField">Table | Show Gridlines</span><span class="f_Tabletext"> menu option. This displays or hides the grid lines around the table cells. The grid lines are for display purpose only and do not appear on the printed document.</span></p>
</td>
</tr>
</table>
</div>




            </div>
          </div>
        </div>



</div>


</body>
</html>
